updating oE datetime
Types
datetime
include datetime.e default namespace is datetime public type datetime(object o)
Declares a datetime type
Parameters:
- obj : any object, so no crash takes place.
Comments:
A datetime type consists of a sequence of length six in the form {year, month, day_of_month, hour, minute, second}. Checks are made to guarantee those values are in range.
Example 1:
include std/datetime.e datetime x = now() ? x ? datetime(x) -- is it a datetime variable? object y = {2019,01,10} ? datetime(y) -- is this a datetime variable?
Results:
{2019,9,8,3,23,23} (your results will differ)
1 (TRUE)
0 (FALSE)
Note:
All elements must be integers except for seconds which could either integer or atom values.
Not Categorized, Please Help
|